1 using UnityEngine;
2 using
System.Collections;
3
4 public
class SkillDescription {
5     
private string[] names;
6     
private string[,] descriptions;
7     
8     
public SkillDescription(){
9         names =
new string[]{"Fire", "Ice", "Shock", "Thunder", "Bomb", "Swap", "Shield", "Speed Up", "Health"};
10         descriptions =
new string[,]{
11             {
"Attack enemy by fire ball",""},
12             {
"Freeze enemy by ice",""},
13             {
"Stun enemy by flash",""},
14             {
"Attack and stun enemies ", "whom got hit by skill"},
15             {
"Attack enemy in character's ", "behind by bomb"},
16             {
"Swap position with enemy ", "who got hit by skill"},
17             {
"Make a shield to block ", "one attack"},
18             {
"Increase character's move ", "speed by 50%"},
19             {
"Increase character's", "health by 50%"}
20         };
21     }
22     
public string getName(int skillIndex){
23         
return this.names[skillIndex];
24     }
25
26     
public string getDesciptions1(int skillIndex){
27         
return this.descriptions[skillIndex, 0];
28     }
29     
public string getDesciptions2(int skillIndex)
30     {
31         
return this.descriptions[skillIndex, 1];
32     }
33 }



Trò chơi đua xe động vật trong UNITY Engine 114.813 lượt xem

Gõ tìm kiếm nhanh...